import request from '@/utils/request'

// 查询院校列表
export function listschool(query) {
  return request({
    url: '/fetv/school/list',
    method: 'get',
    params: query
  })
}

// 查询院校详细
export function getschool(schoolId) {
  return request({
    url: '/fetv/school/' + schoolId,
    method: 'get'
  })
}

// 新增院校
export function addschool(data) {
  return request({
    url: '/fetv/school',
    method: 'post',
    data: data
  })
}

// 修改院校
export function updateschool(data) {
  return request({
    url: '/fetv/school',
    method: 'put',
    data: data
  })
}

// 删除院校
export function delschool(schoolId) {
  return request({
    url: '/fetv/school/' + schoolId,
    method: 'delete'
  })
}
